﻿using System;
using System.Runtime.CompilerServices;

namespace Quicklight.Mobile.Cordova.Media {

   [IgnoreNamespace]
   public class Media {

      public Media(string src, VoidCallback mediaSuccess, MediaErrorCallback mediaError, MediaStatusCallback mediaStatus) {
      }

      [ScriptName("MEDIA_NONE")]
      public const double MEDIA_NONE = 0;
      [ScriptName("MEDIA_STARTING")]
      public const double MEDIA_STARTING = 1;
      [ScriptName("MEDIA_RUNNING")]
      public const double MEDIA_RUNNING = 2;
      [ScriptName("MEDIA_PAUSED")]
      public const double MEDIA_PAUSED = 3;
      [ScriptName("MEDIA_STOPPED")]
      public const double MEDIA_STOPPED = 4;

      [ScriptName("position")]
      public double Position;
      [ScriptName("duration")]
      public double Duration;

      [ScriptName("getCurrentPosition")]
      public void GetCurrentPosition(PositionSuccessCallback mediaSuccess, MediaErrorCallback mediaError) {
      }

      [ScriptName("getDuration")]
      public double GetDuration() {
         return 0.0;
      }

      [ScriptName("play")]
      public void Play() {
      }

      [ScriptName("pause")]
      public void Pause() {
      }

      [ScriptName("release")]
      public void Release() {
      }

      [ScriptName("seekTo")]
      public void SeekTo(double milliseconds) {
      }

      [ScriptName("startRecord")]
      public void StartRecord() {
      }

      [ScriptName("stopRecord")]
      public void StopRecord() {
      }

      [ScriptName("stop")]
      public void Stop() {
      }
   }

}
